<?php use_helper('jQuery') ?>
<div id="switch_published_status_<?php echo $test->getId()?>" align="center">
<?php echo
jq_link_to_remote(
  image_tag("/images/".($test->getIsPublished() ? 'ok.png' : 'cancel.png')),
  array (
    'update' => 'switch_published_status_'.$test->getId(),
    'url' => '@default?module=test&action=changePublishedStatus&id='.$test->getId()
  )
);
?>
</div>